Fix the use of xref-window-local-history together with Xref buffer
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 2 Mar 2025 03:22:56 +0000 (05:22 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Sun, 2 Mar 2025 03:22:56 +0000 (05:22 +0200)
commit625ed68aeaadce4df7bdfd8c08ddfc8ed4f9b01a
tree67d8da385325d963b3f12065980bc5c010dbf2f3
parent8091772767666f2c671a8ba481d50859388152db
Fix the use of xref-window-local-history together with Xref buffer

* lisp/progmodes/xref.el (xref--push-markers): Temporarily
restore the selected window as well, using the value from the
new argument (bug#76565).  Update both callers.
lisp/progmodes/xref.el